Repository navigation
feat(agents): a log summary is frozen sections and one open one (ADR 0174) - #5215
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 6 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1cd0085d18
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5215 +/- ##
==========================================
- Coverage 99.90% 99.89% -0.01%
==========================================
Files 2898 2899 +1
Lines 222619 222722 +103
==========================================
+ Hits 222397 222499 +102
- Misses 222 223 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…he log, the date recall searches by
Why
A task, project or Daily OS agent keeps one summary of everything older than its recent entries, and every fold handed the whole of it back to the model to be written again. Two consequences, both measured in the long-log run behind #5204: the text grows with the log (56–97 words a fold, with nothing to stop it), and a rewrite of everything is where history is lost. #5204 refuses a cut or collapsed result, which turns loss into a stall once the summary outgrows the completion cap.
What (ADR 0174)
search_memory(feat(agents): task and project agents can search their own history (ADR 0173) #5211) reaches them.summaryTextstays the rendered text, so an older build reads a new checkpoint as always, and an older checkpoint is one open section.New:
lib/features/agents/projection/summary_sections.dart(foldIntoSections,renderSummarySections), called fromAgentLogCompactor.maybeCompact.Live result (12 folds, 120 planted decisions, production fold path)
Twelve folds freeze one section, which fits the prompt, so this run does not reach the point where an old section leaves it. That behaviour is held by
summary_sections_test.dart.What this trades
Not measured
Tests
summary_sections_test(13): extending, freezing with its days, batching a large fold, a refusing writer, rendering order and labels, the hidden-sections line and its budget, the legacy payload and round trip.agent_log_compactor_test: a frozen section carried untouched with the model given only the open one — fails when frozen text is fed back — and a pre-sections checkpoint taken as one open section. Ranagents/projection,agents/sync,agents/service,agents/workflow,daily_os_next/agents,test/architecture(4,340 pass). Analyzer clean on the whole package;make knowledge_checkandmake changelog_checkpass.Screenshots
No surface changes: the text of an agent's summary block.